import request from '@/axios'

export const loginApi = (data): Promise<IResponse> => {
  return request.post({ url: '/sysUser/login', data })
}

export const userInfo = (data): Promise<IResponse> => {
  return request.post({ url: '/sysUser/info', data })
}
export const loginOutApi = (): Promise<IResponse> => {
  return request.get({ url: '/sysUser/loginOut' })
}

export const routeListApi = (): Promise<IResponse<AppCustomRouteRecordRaw[]>> => {
  return request.get({ url: '/sysRoute/getSysRouteParentTreeList' })
}
